<template>
  <div class="monitorData">
    <TitleColumn name="钱仓圩总览" isColumn/>
    <div class="content">
      <div class="bg">
        <h3 class="middle">示范区情况</h3>
        <section class="listItem loc1">
          <p>示范区面积</p>
          <strong>6.95<span>平方公里</span></strong>
        </section>
        <section class="listItem loc2">
          <p>灌溉面积</p>
          <strong>6810.89<span>亩</span></strong>
        </section>
        <section class="listItem loc3">
          <p>灌溉有效利用系数</p>
          <strong>0.686</strong>
        </section>
        <section class="listItem loc4">
          <p>高标准农田面积</p>
          <strong>4351.02<span>亩</span></strong>
        </section>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { reactive } from 'vue';
  import TitleColumn from '@/components/TitleColumn';

  defineOptions({ name: 'Overview' });

  const state = reactive({
    name: 'vue3',
  });
</script>

<style lang="less" rel="stylesheet/less" scoped>
  .monitorData {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #02123433;
    backdrop-filter: blur(10px);
    .content {
      width: 340px;
      height: 100%;
      overflow: hidden;
      .bg {
        width: 340px;
        height: 302px;
        background: url(./bg.png) no-repeat;
        background-size: 100% 100%;
        position: relative;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        h3.middle {
          width: 100%;
          height: 40px;
          position: absolute;
          bottom: 20px;
          text-align: center;
          font-size: 14px;
          color: #fff;
        }
      }
      .listItem {
        width: 100px;
        height: 40px;
        position: absolute;
        display: flex;
        flex-direction: column;
        p {
          color: rgba(180, 223, 255, 1);
          text-align: center;
          font-size: 12px;
        }
        strong {
          text-align: center;
          font-size: 18px;
          background-image: -webkit-linear-gradient(-90deg, #FFFFFF 40%, #06B7FD 110%);
          background-clip: text;
          -webkit-text-fill-color: transparent;
          span {
            font-size: 12px;
          }
        }
      }
      .loc1 {
        bottom: 204px;
        left: 50px;
      }
      .loc2 {
        bottom: 200px;
        right: 16px;
      }
      .loc3 {
        bottom: 124px;
        left: 30px;
      }
      .loc4 {
        bottom: 130px;
        right: 6px;
      }
    }
  }
</style>
